package io.gitee.yaoshanli.engine.service;

import io.gitee.yaoshanli.engine.model.WfLinkModel;

public interface ILinkService {
    //获取link
    public WfLinkModel getLink(String id);
    //删除link
    public boolean remove(String id);
    //根据wf_id删除link
    public boolean removeLinks(String wf_id);

    public boolean saveOrUpdate(WfLinkModel wfLinkModel);

    /**
     * 根据节点找寻当前的链接数据
     * @param node_id  节点
     * @param is_true  节点是否是开始的节点
     * @return
     */
    public WfLinkModel getPreLink(String node_id,boolean is_true);
}
